﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Argos.Diagnostics;

namespace ArgosDesktop.Diagnostics
{
	internal class DesktopTraceListener : RollingTabDelimitedTraceListener
	{
		internal DesktopTraceListener(string outputFolder) : base(outputFolder) { }

		protected override string CreateFileName(string source)
		{
			if (!string.IsNullOrEmpty(source))
			{
				return string.Format(@"{1}\{0:yyyyMMddHH}00.txt", DateTime.Now, source);
			}
			return string.Format("{0:yyyyMMddHH}00.txt", DateTime.Now);
		}
	}
}
